package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.ScenicDetail;
import cn.wolfcode.luowowo.common.query.ScenicQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScenicDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ScenicDetail record);

    ScenicDetail selectByPrimaryKey(Long id);

    List<ScenicDetail> selectAll();

    int updateByPrimaryKey(ScenicDetail record);

    List<ScenicDetail> selectTop3ByDestId(Long destId);

    void updateSumById(@Param("scenicId") Long scenicId, @Param("num") int num);

    List<ScenicDetail> listHotScenic(Long destId);

    List<ScenicDetail> listByTagid(Long tagid);

    List<ScenicDetail> judge(@Param("sceincId") Long sceincId, @Param("userId") Long userId);

    void favor(@Param("sceincId") Long sceincId, @Param("num") int num);

    void insertRelation(@Param("sceincId") Long sceincId, @Param("userId") Long userId);

    void deleteRelation(@Param("sceincId") Long sceincId, @Param("userId") Long userId);

    void overgo(@Param("scenicId") Long scenicId, @Param("num") int num);
}